package org.jshand.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

import java.beans.BeanProperty;

/**
 * Hello world!
 *
 */
@SpringBootApplication
@EnableDiscoveryClient
public class NacosDiscoveryConsumer10081
{

    @LoadBalanced
    @Bean
    RestTemplate restTemplate(){

        return new RestTemplate();
    }


    public static void main(String[] args) {
        SpringApplication.run(NacosDiscoveryConsumer10081.class, args);
    }
}
